fix: pass preset parserOpts and writerOpts to conventional-changelog#1045
Merged
sarahdayan merged 4 commits intomainfrom Feb 5, 2026
Merged
fix: pass preset parserOpts and writerOpts to conventional-changelog#1045sarahdayan merged 4 commits intomainfrom
sarahdayan merged 4 commits intomainfrom
Conversation
conventional-changelog wraps patch version headers in <small> tags, e.g., `## <small>0.28.1 (2026-02-05)</small>`. The regex wasn't matching this format, causing GitHub releases to have empty bodies. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 1161146.
The angular preset's header template (with links and proper formatting) wasn't being used because parserOpts and writerOpts from the loaded preset weren't being passed to conventional-changelog-core. This caused changelog entries to use the default writer template which: - Wraps patch versions in <small> tags - Omits the compare link on versions Now the preset's templates are properly applied, producing consistent changelog entries like: ## [0.28.1](https://github.com/.../compare/v0.28.0...v0.28.1) (date) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
dhayab
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes changelog entries missing version links and having
<small>tags around patch versions.Problem
Changelog entries for patch releases looked like:
## <small>0.28.1 (2026-02-05)</small>Instead of the expected format with a compare link:
## [0.28.1](https://github.com/algolia/shipjs/compare/v0.28.0...v0.28.1) (2026-02-05)This also caused GitHub releases to have empty bodies since
extractSpecificChangelogcouldn't match the<small>format.Root Cause
The angular preset's
parserOptsandwriterOpts(which include the header template with links) weren't being passed toconventional-changelog-core:This caused conventional-changelog-writer to fall back to its default header template which wraps patch versions in
<small>tags and omits links.Solution
Extract and pass the preset's
parserOptsandwriterOpts: